<template>
  <div class="dashboard">
    <div class="container">
      <h1 class="title">首页1</h1>
      <DefinedPopup
        :popup="popup"
        @handleCancel="handleCancel"
        @handleSure="handleSure"
      />
    </div>
  </div>
</template>
<script>
import DelIcon from "@/assets/icon/del.png";
export default {
  data() {
    return {
      popup: {
        isShow: true,
        type: "warn",
        icon: DelIcon,
        title: "哈哈", 
        desc: "不知道",
        cancel: "取消",
        sure: "确定",
      },
    };
  },
  methods: {
    handleCancel() {
      this.popup.isShow = false;
    },
    handleSure() {
      this.popup.isShow = false;
    },
  },
};
</script>
<style lang="scss" scoped>
.dashboard {
  width: 100%;
  height: 100%;
  background: url(../assets/showcase.png) no-repeat;
  background-size: 100% 100%;
  .container {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding-top: 100px;
    background-color: rgba(0, 0, 0, 0.7);
    text-align: center;
    color: white;
    .title {
      font-size: 30px;
    }
  }
}
</style>
